The n-queens problem in higher dimensions
نویسندگان
چکیده
The 8-queens problem is a well-known chessboard problem, whose constraints are to place eight queens on a normal chessboard in such a way that no two attack each other, under the rule that a chess queen can attack other pieces in the same column, row, or diagonal. This problem can be generalized to place n queens on an n by n chessboard, otherwise known as the n-queens problem. The mathematicians Gauss and Polya studied this problem [3], and Ahrens [1] showed that for all n ≥ 4, solutions exist. This problem can be further generalized to d dimensions, where two queens attack one another if they lie on a common hyperplane. It can then be described as the n-queens problem in d dimensions. (The traditional 8-queens problem, as described above, is 2-dimensional.) The n-queens problem is classically considered a theoretical one, but has also been studied [5] for its many applications: in distributed memory storage schemes [4], VLSI test-
منابع مشابه
Ovariectomy in Queens: Two portals Laparoscopy vs Conventional Approach
Ovariectomy in Queens: Two portals Laparoscopy vs Conventional Approach Navid Salmanzadeh Zahedani1 , Jalal Bakhtiari1, DVM, PhD, Alizera Khalaj2, MD, Behnam Vafadari1 , D. V. M., Amir Niasari-Naslaji3, DVM, PhD Objective- The purpose of this study was to compare two portal laparoscopy and conventional approach for ovariectomy in queen. Design- Retrospective study. Animals- Adult healthy ...
متن کاملEfficient Approximation Algorithms for Point-set Diameter in Higher Dimensions
We study the problem of computing the diameter of a set of $n$ points in $d$-dimensional Euclidean space for a fixed dimension $d$, and propose a new $(1+varepsilon)$-approximation algorithm with $O(n+ 1/varepsilon^{d-1})$ time and $O(n)$ space, where $0 < varepsilonleqslant 1$. We also show that the proposed algorithm can be modified to a $(1+O(varepsilon))$-approximation algorithm with $O(n+...
متن کاملComplete and Incomplete Algorithms for the Queen Graph Coloring Problem
The queen graph coloring problem consists in covering a n × n chessboard with n queens, so that two queens of the same color cannot attack each other. When the size, n, of the chessboard is a multiple of 2 or 3, it is hard to color the queen graph with only n colors. We have developed an exact algorithm which is able to solve exhaustively this problem for dimensions up to n = 12 and find one so...
متن کاملComplexity of n-Queens Completion
The n-Queens problem is to place n chess queens on an n by n chessboard so that no two queens are on the same row, column or diagonal. The n-Queens Completion problem is a variant, dating to 1850, in which some queens are already placed and the solver is asked to place the rest, if possible. We show that n-Queens Completion is both NP-Complete and #P-Complete. A corollary is that any non-attack...
متن کاملA Parallel Search Algorithm for the N-Queens Problem
The N-queens problem is to place n queens on an n n chessboard such that no two queens attack each other. This problem is commonly used as a benchmark for algorithms that solve constraint satisfaction problems (CSP). This paper describes a novel parallel algorithm for the N-queens problem. The algorithm nds a solution by performing a probabilistic parallel search. By using n processors, its run...
متن کامل